﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.ReturnNotice
{
    /// <summary>
    /// 退票通知单物料表
    /// </summary>
    [SugarTable("refundNoticeMaterial")]
    public class refundNoticeMaterial : BaseEntity
    {
        /// <summary>
        /// 退票物料表主键编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int ReturnmaterialId { get; set; }
        /// <summary>
        /// 销售单号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Documentnumber { get; set; }
        /// <summary>
        /// 发货单号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Documentnumbers { get; set; }
        /// <summary>
        /// 物料编码(外键 与物料表关联)
        /// </summary>
        public string ItemBianma { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string MaterialName { get; set; }
        /// <summary>
        /// 型号规格
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Specifications { get; set; }
        /// <summary>
        /// 主计量
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Measurenum { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int ReturnShulnum { get; set; }
        /// <summary>
        /// 入库数量
        /// </summary>
        public int BeginNumbere { get; set; }
        /// <summary>
        /// 批号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string PiHao { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string Remark { get; set; }
        /// <summary>
        /// 流水号
        /// </summary>
       [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string? ThSerialnumber { get; set; }
    }
}
